package com.xike.micromemberserver.dao;

import com.xike.micromemberserver.entity.BooksEntity;
import com.xike.micromemberserver.entity.PageInfoMation;

import java.util.List;

/**
 * @author hongbin
 * @date 2021-04-28 19:11
 * Description：
 */

public interface BooksServiceMapper {
    List<BooksEntity> selectAll();

    int insertOne(BooksEntity entity);

    int update(BooksEntity entity);

    int delete(int id);

    List<BooksEntity> selectByName(String bookName);

    int updateChapterTime(int id);

    void approvalBook(BooksEntity booksEntitie);

    BooksEntity selectById(int id);

    void addVisits(int id);

    List<BooksEntity> selectByNameUnApproval(PageInfoMation pageInfo);

    List<BooksEntity> selectByType(String bookType);

    List<BooksEntity> selectByid(int id);

    List<BooksEntity> selectUnApproval();

    List<BooksEntity> selectByUploader(String uploader);

    List<BooksEntity> selectAlloff();

    List<BooksEntity> selectAllByvisits();

    List<BooksEntity> selectByAny(String keyword);
}
